<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('修改月台')"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-supplier-edit" th:object="${carArea}">
        <input id="supplierId" name="supplierId" th:field="*{id}" type="hidden">
        <div class="form-group">
            <label class="col-sm-3 control-label">月台名称：</label>
            <div class="col-sm-8">
                <input id="number" name="number" th:field="*{number}" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">月台编码：</label>
            <div class="col-sm-8">
                <input id="code" name="code" th:field="*{code}" class="form-control" type="text" required>
            </div>
        </div>
    </form>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript">
    var prefix = ctx + "carArea";

    function submitHandler(){
        if($.validate.form()){
            $.operate.save(prefix + "/edit", $('#form-supplier-edit').serialize());
        }
    }
</script>
</body>
</html>